package com.cjh.controller;

import com.cjh.DemoFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 *com.cjh.controller
 *2024/7/23 11:38
 *
 *@author chenjh
 */
@RestController
public class TestController {
    @Autowired
    private DemoFeignService demoFeignService;


    @ResponseBody
    @GetMapping("feign/test1")
    public String test3() {
        demoFeignService.delay100("");
        return "success";
    }

    @ResponseBody
    @GetMapping("feign/test2")
    public String test4() {
        demoFeignService.delay500("");
        return "success";
    }
}
